import request from "@/utils/request";

// 查询订单列表
export function listBizOrder(query) {
  return request({
    url: "/biz/bizOrder/list",
    method: "get",
    params: query
  });
}

// 查询订单详细
export function getBizOrder(id) {
  return request({
    url: "/biz/bizOrder/" + id,
    method: "get"
  });
}

// 新增订单
export function addBizOrder(data) {
  return request({
    url: "/biz/bizOrder",
    method: "post",
    data: data
  });
}

// 修改订单
export function updateBizOrder(data) {
  return request({
    url: "/biz/bizOrder",
    method: "put",
    data: data
  });
}

// 删除订单
export function delBizOrder(id) {
  return request({
    url: "/biz/bizOrder/" + id,
    method: "delete"
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizOrder/findMaxSort",
    method: "get"
  });
}
//  定案推送测试

export function pushOrder(id) {
  return request({
    url: "/biz/bizOrder/pushOrder?id=" + id,
    method: "get"
  });
}
// 测试物流推送
export function pushJdKuaiYun(id) {
  return request({
    url: "/biz/bizOrder/pushJdKuaiYun?id=" + id,
    method: "get"
  });
}

// 导出订单
export function exportBizOrder(query) {
  return request({
    url: "/biz/bizOrder/export",
    method: "get",
    params: query
  });
}
